<extend name="./Template/Layout/Layout.html" />
<block name="style"></block>
<block name="body">
  <div id="content-main" style="width:100%;">
    <form class="layui-form" action="" style="padding: 20px;">

      <input type="hidden" class="ArticleColumnId" value="{$info.id}">

      <div class="layui-form-item">
        <label class="layui-form-label w120">
          <span class="text-danger">*</span>上级栏目</label>
        <div class="layui-input-block ml120">
          <select name="interest" class="ArticleColumnUpid" lay-filter="aihao">
            <foreach name="menu" item="vo">
              <option value="{$vo.id}" <if condition="$upid eq $vo['id']">selected="selected"</if>>{$vo.title}</option>
            </foreach>
          </select>
        </div>
      </div>

      <div class="layui-form-item">
        <label class="layui-form-label w120">栏目标题</label>
        <div class="layui-input-block ml120">
          <input type="text" class="layui-input ArticleColumnName" name="title" lay-verify="title" autocomplete="off" placeholder="请填写栏目" value="{$info.name}"></div>
      </div>

      <div class="layui-form-item layui-form-text">
        <label class="layui-form-label w120">排序</label>
        <div class="layui-input-block ml120">
            <input type="text" class="layui-input ArticleColumnOrder" name="title" lay-verify="title" autocomplete="off" placeholder="正序排序" value="{$info.order}">
        </div>
      </div>

      <div class="layui-form-item">
        <div class="layui-input-block ml120">
          <a href="javascript:void(0);" class="ArticleColumnSubmit layui-btn layui-btn-normal"><if condition="$info">保存<else />添加</if></a>
          <a href="{:U('Home/Article/ArticleColumn')}" class="ArticleWriteBack layui-btn layui-btn-primary">返回</a>
        </div>
      </div>

    </form>
  </div>
</block>
<block name="script">
<script>
  var saveurl = "{:U('Home/Article/ArticleColumnAdd')}";
</script>
</block>
